package com.huangwenshuo.futurestarschoolmanagement.service.impl;

import com.huangwenshuo.futurestarschoolmanagement.pojo.po.PermissionsPo;
import com.huangwenshuo.futurestarschoolmanagement.mapper.PermissionsMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.PermissionsVo;
import com.huangwenshuo.futurestarschoolmanagement.service.PermissionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangwenshuo
 * @since 2020-12-26
 */
@Service
public class PermissionsServiceImpl extends ServiceImpl<PermissionsMapper, PermissionsPo> implements PermissionsService {

    @Autowired
    private PermissionsMapper permissionsMapper;

    @Override
    public PermissionsVo getPermissionByRid(int rid) {
        PermissionsVo permissionsVo = permissionsMapper.getPermissionByRid(rid);
        return permissionsVo;
    }
}
